import { makeAutoObservable } from "mobx";
import { GetInfo } from '@/services';
import { InFo } from '@/utils/InFo';

class getInfo{
    constructor(){
        makeAutoObservable(this);
    }

    MyInfo : InFo = {} as InFo;

    async getInFo(){
        let result = await GetInfo();
        this.MyInfo = result.user;
    }
}

export default new getInfo;